package com.github.ecbp.user.service.dto;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel
@Data
public class ResourceDto extends BaseIdDTO {
    @ApiModelProperty(value = "项目名称", required = true)
    @NotNull
    private String projectName;

    @ApiModelProperty(value = "权限ID", required = true)
    @NotNull
    private Long permissionId;

    @ApiModelProperty(value = "是否设置了权限")
    private Boolean permissionStatus;

    @ApiModelProperty(value = "资源名称", required = true)
    @NotEmpty
    private String name;

    /**
     * 资源URL
     */
    @ApiModelProperty(value = "资源URL(接口地址)", required = true)
    private String url;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 启用状态；0->禁用；1->启用
     */
    @ApiModelProperty(value = "启用状态", required = true)
    @NotNull
    private Integer status;
}
